/**
 * request logic
 */
const NET_CODE_SUC = 200;

/**
* 判断服务请求是否成功
* @param response
* @returns {*|boolean}
*/
export function isResponseSuccess (response) {
  return response && response.code && response.code === NET_CODE_SUC;
}
// 询价状态 转换
export const INQUIRY_IN_STATUS_DES = '询价中';
export const INQUIRY_IN_STATUS_CODE = 100;
export const INQUIRY_DOWN_STATUS_DES = '询价完成';
export const INQUIRY_DOWN_STATUS_CODE = 400;
export const INQUIRY_CANCEL_STATUS_DES = '询价取消';
export const INQUIRY_CANCEL_STATUS_CODE = 500;
export const INQUIRY_PENDING_APPROVAL_STATUS_DES = '订货待审批';
export const INQUIRY_PENDING_APPROVAL_STATUS_CODE = 200;
export const INQUIRY_GENERATE_ORDER_STATUS_DES = '待生成订单';
export const INQUIRY_GENERATE_ORDER_STATUS_CODE = 300;

export const SET_SOURCINGSUPP_LIST = [
  {
    prop: 'skuName',
    label: '商品名称',
  },
  {
    prop: 'skuSpecifications',
    label: '规格型号',
  },
  {
    prop: 'skuUnit',
    label: '计量单位',
  },
  {
    prop: 'skuNum',
    label: '数量',
  },
  {
    prop: 'unitPrice',
    label: '单价',
  },
  {
    prop: 'skuPrice',
    label: '金额',
  }
]
